Bug 596473 - Second double-click of GtkTreeView row doesn't emit...
authorKristian Rietveld <kris@gtk.org>
Fri, 27 Nov 2009 12:40:30 +0000 (13:40 +0100)
committerKristian Rietveld <kris@gtk.org>
Fri, 27 Nov 2009 12:48:16 +0000 (13:48 +0100)
commit2ef9b989bff2faf392aedc57902e23739b965cb9
tree8b5c4d59352c4929e7f76954704eb9faeef9bc87
parentdd511e825aef9edada30107b3d891d496cc39fd8
Bug 596473 - Second double-click of GtkTreeView row doesn't emit...

Rework double click handling in GtkTreeView.  We cannot blindly use
the 2BUTTON_PRESS and 3BUTTON_PRESS events.  In case a user does two
fast double clicks, we receive a 3BUTTON_PRESS and BUTTON_PRESS.  We
cannot easily deduce two double clicks from this.

We have removed the bookkeeping using row references of the last paths
clicked.  Instead we monitor event time, (x, y) coordinates and compare
against double-click-time and double-click-distance ourselves.
gtk/gtktreeprivate.h
gtk/gtktreeview.c